<?php
/**
 * TOP API: tmall.interact.isvlottery.draw request
 * 
 * @author auto create
 * @since 1.0, 2016.09.13
 */
class TmallInteractIsvlotteryDrawRequest
{
	/** 
	 * 安全码
	 **/
	private $asac;
	
	/** 
	 * 互动实例id
	 **/
	private $interactId;
	
	/** 
	 * 店铺id
	 **/
	private $shopId;
	
	/** 
	 * 安全ua
	 **/
	private $ua;
	
	/** 
	 * umid
	 **/
	private $umid;
	
	private $apiParas = array();
	
	public function setAsac($asac)
	{
		$this->asac = $asac;
		$this->apiParas["asac"] = $asac;
	}

	public function getAsac()
	{
		return $this->asac;
	}

	public function setInteractId($interactId)
	{
		$this->interactId = $interactId;
		$this->apiParas["interact_id"] = $interactId;
	}

	public function getInteractId()
	{
		return $this->interactId;
	}

	public function setShopId($shopId)
	{
		$this->shopId = $shopId;
		$this->apiParas["shop_id"] = $shopId;
	}

	public function getShopId()
	{
		return $this->shopId;
	}

	public function setUa($ua)
	{
		$this->ua = $ua;
		$this->apiParas["ua"] = $ua;
	}

	public function getUa()
	{
		return $this->ua;
	}

	public function setUmid($umid)
	{
		$this->umid = $umid;
		$this->apiParas["umid"] = $umid;
	}

	public function getUmid()
	{
		return $this->umid;
	}

	public function getApiMethodName()
	{
		return "tmall.interact.isvlottery.draw";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
		RequestCheckUtil::checkNotNull($this->asac,"asac");
		RequestCheckUtil::checkNotNull($this->shopId,"shopId");
		RequestCheckUtil::checkNotNull($this->ua,"ua");
		RequestCheckUtil::checkNotNull($this->umid,"umid");
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
